package com.qiwenshare.file.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qiwenshare.file.mapper.SpiderMapper;
import com.qiwenshare.file.domain.Spider;
import com.qiwenshare.file.api.SpiderService;
import com.qiwenshare.file.vo.SpiderVo;
import com.qiwenshare.file.vo.UserFileHistoryVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 爬虫表(Spider)表服务实现类
 *
 * @author makejava
 * @since 2023-09-24 19:35:21
 */
@Service("spiderService")
public class SpiderServiceImpl extends ServiceImpl<SpiderMapper, Spider> implements SpiderService {

    @Autowired
    private SpiderMapper spiderMapper;

    @Override
    public IPage<SpiderVo> queryPage(Long currentPage, Long pageCount) {
        Page<SpiderVo> page = new Page<>(currentPage, pageCount);
        return spiderMapper.selectPageVo(page);
    }
}

